//
// Created by 束庆乐 on 2024/12/29.
//
#include "iostream"
using namespace std;
extern void swap(int a,int b);
int main024(){
    int a = 5;
    int b = 10;
    swap(a,b);
    cout << "主函数:" << endl;
    cout << a << endl;
    cout << b << endl;
    return 0;
}

void swap(int a,int b){
    int temp = a;
    a = b;
    b = temp;
    cout << "交换后:" << endl;
    cout << a << endl;
    cout << b << endl;
}